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,0xD,0xC,0xD,0x0,0x2,0xC,0xE,0x0,0x1,
0x9,0x7,0x5,0x6,0x9,0x5,0x5,0xE,0x9,0x9,0x5,0xF,0x9,0x1,0x5,0xD
};

int main(void)
{
	int i;
	printf("static const u_int8_t fd[0x1000] = {");
	for (i = 0; i < 0x400; i++) {
		u_int8_t b = fd[i];
		printf("/*%X*/ ", b);
		if (b & 0x01) printf("1,"); else printf("0,");
		if (b & 0x02) printf("1,"); else printf("0,");
		if (b & 0x04) printf("1,"); else printf("0,");
		if (b & 0x08) printf("1,"); else printf("0,");
		if (3 == (i % 4))
			printf("\n");
		else
			printf(" ");
	}
	printf("};");
	return 0;
}
